package com.neusoft.kora.refactor.sd;

/**
 * <p/>com.neusoft.kora.refactor.sd
 * <p/>Restructure
 * <p/>Created by chenxiangning on 15-11-9.
 */
public class SplitTemporaryVariable {
    void demo() {
        double temp = 2 + (10 + 20);

        System.out.println(temp);

        temp = 10 * 20;

        System.out.println(temp);
    }


    void demo_() {
        double tempOne = 2 * (10 + 20);

        System.out.println(tempOne);

        double tempTwo = 10 * 20;

        System.out.println(tempTwo);
    }
}
